//
//  PlaceTableViewCell.m
//  A Learning Walk
//
//  Created by dllo on 16/6/28.
//  Copyright © 2016年 战斗民族. All rights reserved.
//

#import "PlaceTableViewCell.h"

@implementation PlaceTableViewCell



-(void)dealloc{
    [_view release];
    [_label release];
    [_imageV release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self =[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}
-(void)creatCell{
    
    self.label = [[UILabel alloc] init];
    self.label.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.label];
    self.label.textColor = [UIColor colorWithRed:17/255.0 green:168/255.0 blue:247/255.0 alpha:1];
    
    self.imageV = [[UIImageView alloc] init];
    self.imageV.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.imageV];
    self.imageV.image = [UIImage imageNamed:@"131"];
    
    self.view = [[UIView alloc] init];
    self.view.backgroundColor = [UIColor colorWithRed:173/255.0 green:187/255.0 blue:191/255.0 alpha:1];
    [self.contentView addSubview:self.view];
}
-(void)layoutSubviews{
    [super layoutSubviews];
    
    self.imageV.frame = CGRectMake(5, 10, self.contentView.frame.size.height-20, self.contentView.frame.size.height-20);
    
    self.label.frame = CGRectMake(self.imageV.frame.size.width+10, 10, self.contentView.frame.size.width, self.contentView.frame.size.height-20);
    
    self.view.frame = CGRectMake(30, self.contentView.frame.size.height-1, self.contentView.frame.size.width-30, 1);
}


@end
